package com.oktest.measure.kt

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch

/**
 * @Author HaoXin
 * @Date 2020/12/17
 */

fun uiThread(block: () -> Unit) {
    GlobalScope.launch(Dispatchers.Main){
        block()
    }
}